
<template>
  <div :class="{ mycolor: isTrue }"></div>
</template>

<script setup>
import { ref } from "vue";
const isTrue = ref(true);
</script>

<style scoped>
.mycolor {
  width: 200px;
  height: 200px;
  background-color: blue;
}
</style>